import request from '@/utils/request'

export function serviceFeedbackList(query) {
  return request({
    url: '/business/serviceFeedback/list',
    method: 'get',
    params: query
  })
}
export function upServiceFeedback(data) {
  return request({
    url: '/business/serviceFeedback',
    method: 'put',
    data: data
  })
}

export function upPostClassify(data) {
  return request({
    url: '/business/postClassify',
    method: 'put',
    data: data
  })
}
export function postClassifyList(query) {
  return request({
    url: '/business/postClassify/list',
    method: 'get',
    params: query
  })
}

export function addPostClassify(data) {
  return request({
    url: '/business/postClassify',
    method: 'post',
    data: data
  })
}


export function upPost(data) {
  return request({
    url: '/business/post',
    method: 'put',
    data: data
  })
}
export function postList(query) {
  return request({
    url: '/business/post/list',
    method: 'get',
    params: query
  })
}

export function addPost(data) {
  return request({
    url: '/business/post',
    method: 'post',
    data: data
  })
}


export function upNewTopic(data) {
  return request({
    url: '/business/newTopic',
    method: 'put',
    data: data
  })
}
export function newTopicList(query) {
  return request({
    url: '/business/newTopic/list',
    method: 'get',
    params: query
  })
}

export function addNewTopic(data) {
  return request({
    url: '/business/newTopic',
    method: 'post',
    data: data
  })
}

export function currentTopicsDateils(query) {
  return request({
    url: `/business/currentTopics/${query}`,
    method: 'get',
  })
}
export function upCurrentTopics(data) {
  return request({
    url: '/business/currentTopics',
    method: 'put',
    data: data
  })
}


export function upScanLucky(data) {
  return request({
    url: '/business/scanLucky',
    method: 'put',
    data: data
  })
}
export function scanLuckyList(query) {
  return request({
    url: '/business/scanLucky/list',
    method: 'get',
    params: query
  })
}
export function addScanLucky(data) {
  return request({
    url: '/business/scanLucky',
    method: 'post',
    data: data
  })
}
export function addEquity(data) {
  return request({
    url: '/business/equity',
    method: 'post',
    data: data
  })
}
export function upEquity(data) {
  return request({
    url: '/business/equity',
    method: 'put',
    data: data
  })
}
export function equityList(query) {
  return request({
    url: '/business/equity/list',
    method: 'get',
    params: query
  })
}



export function addPostRunescape(data) {
  return request({
    url: '/business/postRunescape',
    method: 'post',
    data: data
  })
}
export function upPostRunescape(data) {
  return request({
    url: '/business/postRunescape',
    method: 'put',
    data: data
  })
}
export function postRunescapeList(query) {
  return request({
    url: '/business/postRunescape/list',
    method: 'get',
    params: query
  })
}
// 江湖帖子
export function delPostRunescape(id) {
  return request({
    url: '/business/postRunescape/' + id,
    method: 'delete'
  })
}
export function delPostClassify(id) {
  return request({
    url: '/business/postClassify/' + id,
    method: 'delete'
  })
}
export function delNewTopic(id) {
  return request({
    url: '/business/newTopic/' + id,
    method: 'delete'
  })
}
export function delPost(id) {
  return request({
    url: '/business/post/' + id,
    method: 'delete'
  })
}



export function addAiHairstyleMaterial(data) {
  return request({
    url: '/business/aiHairstyleMaterial',
    method: 'post',
    data: data
  })
}
export function upAiHairstyleMaterial(data) {
  return request({
    url: '/business/aiHairstyleMaterial',
    method: 'put',
    data: data
  })
}
export function aiHairstyleMaterialList(query) {
  return request({
    url: '/business/aiHairstyleMaterial/list',
    method: 'get',
    params: query
  })
}
// 江湖帖子
export function delAiHairstyleMaterial(id) {
  return request({
    url: '/business/aiHairstyleMaterial/' + id,
    method: 'delete'
  })
}

export function listSwap(query) {
  return request({
    url: '/business/aiChangeRecord/listSwap',
    method: 'get',
    params: query
  })
}
export function aiChangeList(query) {
  return request({
    url: '/business/aiChangeRecord/aiChangeList',
    method: 'get',
    params: query
  })
}
export function examTopicUnionId(query) {
  return request({
    url: '/business/exam/examTopicUnionId',
    method: 'get',
    params: query
  })
}